//
//  CYStepsTableViewCell.m
//  KCZ_B段项目
//
//  Created by dllo on 15/11/4.
//  Copyright © 2015年 Sky. All rights reserved.
//

#import "CYStepsTableViewCell.h"
#import "FitHeader.h"
#import "FontSizeSingleTon.h"
#define FontSize [[FontSizeSingleTon shareFontSize]array]
@implementation CYStepsTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatViews];
    }
    return self;
}

-(void)creatViews
{
    _photoImage = [[UIImageView alloc]initWithFrame:CGRectMake(10 * wt, 5 * ht, 100 * wt, 75 * ht)];
    _photoImage.backgroundColor = [UIColor grayColor];
    [self addSubview:_photoImage];
    
    _numLabel = [[UILabel alloc]initWithFrame:CGRectMake(_photoImage.frame.origin.x + _photoImage.frame.size.width + 10, _photoImage.frame.origin.y, 25 * wt, 30 * ht)];
    _numLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:[FontSize[0] integerValue]];
    [self addSubview:_numLabel];
    
    _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(_numLabel.frame.origin.x + _numLabel.frame.size.width, _numLabel.frame.origin.y + _numLabel.frame.size.height - 5 * ht, 200 * wt, 50 * ht)];
    _titleLabel.numberOfLines = 0;
    _titleLabel.font = [UIFont systemFontOfSize:[FontSize[2] integerValue]];
    [self addSubview:_titleLabel];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
